﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AZai.View
{
    /// <summary>
    /// UCBidding.xaml 的交互逻辑
    /// </summary>
    public partial class UCBidding : UserControl
    {
        public UCBidding()
        {
            InitializeComponent();
        }

        private void ckJJ1_Checked(object sender, RoutedEventArgs e)
        {
            if (ckJJ1.IsChecked == true)
            {
                bottomPanel.Height = new GridLength(20);
                ckJJ1.IsChecked = true;
            }
            else
            {
                bottomPanel.Height = new GridLength(1,GridUnitType.Star);
                ckJJ1.IsChecked = false;
            }
        }

        private void ckJJ_Checked(object sender, RoutedEventArgs e)
        {
            if (ckJJ.IsChecked == true)
            {
                bottomPanel2.Height = new GridLength(34, GridUnitType.Pixel);
                ckJJ.IsChecked = true;
            }
            else
            {
                bottomPanel2.Height = new GridLength(2, GridUnitType.Star);
                ckJJ.IsChecked = false;
            }
        }
    }
}
